package com.leizi.igym.dto;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.List;

/**
 * @Author: leizi0110
 * @CreateTime: 2024-05-04  22:49
 * @Description: 前端饼状图返回格式
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
public class PanelStatisticsDTO implements Serializable {

    @Serial
    private static final long serialVersionUID = -3427860595144599038L;

    @JsonSerialize(using = ToStringSerializer.class)
    private long empCount;
    @JsonSerialize(using = ToStringSerializer.class)
    private long trainerCount;
    @JsonSerialize(using = ToStringSerializer.class)
    private long memberCount;
    @JsonSerialize(using = ToStringSerializer.class)
    private long courseCount;
}
